import {Behaviour, HitTestScript, SpriteRenderer} from "../gameengine";
import {plot} from "./plot";

export class PlotTestBehaviour extends Behaviour{
    protected onStart() {
        const hitTest=this.displayObject.getScript(HitTestScript);
        hitTest.onClick=()=>{
            plot.end2Plot();
        }
    }

    protected onUpdate(advancedTime: number) {
    }
}